package localhost.services.WorkflowData;

public class WorkflowDataPortTypeProxy implements WorkflowDataPortType {
  private String _endpoint = null;
  private WorkflowDataPortType workflowDataPortType = null;

  public WorkflowDataPortTypeProxy() {
    _initWorkflowDataPortTypeProxy();
  }

  public WorkflowDataPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initWorkflowDataPortTypeProxy();
  }

  private void _initWorkflowDataPortTypeProxy() {
    try {
      workflowDataPortType = (new WorkflowDataLocator()).getWorkflowDataHttpPort();
      if (workflowDataPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)workflowDataPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)workflowDataPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }

    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }

  public String getEndpoint() {
    return _endpoint;
  }

  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (workflowDataPortType != null)
      ((javax.xml.rpc.Stub)workflowDataPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

  }

  public WorkflowDataPortType getWorkflowDataPortType() {
    if (workflowDataPortType == null)
      _initWorkflowDataPortTypeProxy();
    return workflowDataPortType;
  }

  public com.sunda.business.soa.hr.po.WorkflowLogs[] getWorkflowLogsByReqid(String in0) throws java.rmi.RemoteException{
    if (workflowDataPortType == null)
      _initWorkflowDataPortTypeProxy();
    return workflowDataPortType.getWorkflowLogsByReqid(in0);
  }
  
  
}